//
//  ImageUnit.h
//  NetworkTaxiDriver
//
//  Created by thinkjoy on 16/9/22.
//  Copyright © 2016年 Thinkjoy_RS. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ImageUnit : NSObject

#pragma mark    image转化为base64字符串
/**
 *  image转化为base64字符串
 *
 *  @param image              image
 *  @param compressionQuality 压缩质量(0-1)
 */
+ (NSString *)imageToBase64Str:(UIImage *)image compressionQuality:(CGFloat)compressionQuality;

#pragma maek    base64字符串转化为image
/**
 *  base64字符串转化为image
 */
+ (UIImage *)base64StrToImage:(NSString *)imgStr;

@end
